package com.wuzao.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//Rest模式
@RestController
@RequestMapping("/controller/advice")
public class MyController {

    @GetMapping("/exception")
    public String getById(){
        System.out.println(1/0);
        return "springboot is running...";
    }

}
